<div class="properties_container_headline">
	<a href="#" class="properties_button button_display_container"></a>
	
	{foreach item=lang_item_array from=$content_data.LANGUAGES name=language_array}
		{foreach item=properties_language_item_array from=$content_data.PROPERTIES_LANGUAGE_ARRAY name=properties_language_item_array}
			{if $lang_item_array.id == $properties_language_item_array.language_id}
				{if $properties_language_item_array.properties_admin_name || $properties_language_item_array.properties_name}
					{if !$smarty.foreach.language_array.first}
						<div class="properties_container_headline_placeholder">/</div>
					{/if}
				{/if}   
                                {if $properties_language_item_array.properties_admin_name}
                                        <div class="properties_container_headline_text">{$properties_language_item_array.properties_admin_name} ({$properties_language_item_array.properties_name})</div>
                                {else}
                                        <div class="properties_container_headline_text">{$properties_language_item_array.properties_name}</div>
                                {/if}
			{/if}
		{/foreach}
	{/foreach}
	
	<a href="#" title="Bearbeiten" class="properties_button button_propertie_edit button_edit_pencil"></a>
	<a href="#" title="L&ouml;schen" class="properties_button button_propertie_delete button_cancel_red_cross"></a>
	<a href="#" title="Wert hinzuf&uuml;gen" class="properties_button button_propertie_value_add button_add_green_plus">Wert</a>
	<div class="properties_sort_order_value">{$content_data.sort_order}</div>
	<div class="properties_sort_order_text">#</div>
	<div style="clear: both;"> <!-- --> </div>
</div>
<div class="properties_container_content">
	<table cellpadding="2" cellspacing="0">
		<tr>

			{foreach item=item_array from=$content_data.LANGUAGES}
				<th class="properties_table_name">Wert ({$item_array.code})</th>
			{/foreach}

			<th>Sortiernr.</th>
			<th>Artikelnr.</th>
			<th colspan="3">Preis</th>
		</tr>

		{foreach item=values_item from=$content_data.PROPERTIES_VALUES}
			<tr class="properties_values_id_{$values_item.properties_values_id}">

				{foreach item=lang_item_array from=$content_data.LANGUAGES}
					<td class="properties_table_name">
					{foreach item=descr_item_array from=$values_item.VALUES_DESCRIPTIONS}
						{if $lang_item_array.id == $descr_item_array.language_id}
							{$descr_item_array.name}
						{/if}
					{/foreach}
					&nbsp;</td>
				{/foreach}

				<td class="properties_table_sortnr">{$values_item.sort_order}&nbsp;</td>
				<td class="properties_table_artnr">{$values_item.value_model}&nbsp;</td>
				<td class="properties_table_price">{$values_item.value_price|string_format:"%.2f"}&nbsp;</td>
				<td class="properties_table_button"><a href="#" title="Bearbeiten" class="properties_button button_propertie_value_edit button_edit_pencil"> <!-- --> </a></td>
				<td class="properties_table_button"><a href="#" title="L&ouml;schen" class="properties_button button_propertie_value_delete button_cancel_red_cross"> <!-- --> </a></td>
			</tr>
		{/foreach}

	</table>
</div>